home *** CD-ROM | disk | FTP | other *** search
-
- #define RADIO struct radio_type
- #define p_RADIO RADIO *
- #define CHANNEL struct channel_type
- #define p_CHANNEL CHANNEL *
-
- /*
- * This should be 1 more than the actual number expected.
- * IE: 5 == 4 messages
- */
- #define MAX_MESSAGES 6
-
- RADIO {
- int note1, note2, note3;
- };
-
- CHANNEL {
- int head;
- int tail;
- RADIO message[MAX_MESSAGES];
- };
-
- void read_message(p_CHANNEL c, int *n1, int *n2, int *n3);
- void inc_pointer(int *p);
- int peek_ahead(int p);
- void add_message_to_channel(p_CHANNEL c, int n1, int n2, int n3);
- void clear_channel(p_CHANNEL c);
- BOOL any_messages(p_CHANNEL c);